This article provides how-to instructions for creating and organizing documents, linking them to associated files, called attachments, and creating MAP structures for additional document hierarchies. Attachments in Ditto are represented using the ATTACHMENT data type, which you can use to store binary data, such as images, alongside queryable descriptive information, such as file name and description.
EXECUTE
API method against the ditto.store
object and include an INSERT INTO
query that specifies the document to be inserted.
_id
and serves as the primary key for the document.
mutatedDocumentIDs
method on the result object after the insertion like this:
vin
and make
fields to form a composite key:
newAttachment
method on the store
namespace.
When creating an attachment...
An attachment token is...